import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Answer from '@/components/Answer'
import Finish from '@/components/Finish'
import Dail from '@/components/Dail'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/Answer',
            name: 'Answer',
            component: Answer
        },
        {
            path: '/Finish',
            name: 'Finish',
            component: Finish,
            children: [
                {
                    path: '/Dail',
                    name: 'Dail',
                    component: Dail,
                },

            ],
        },
        {
            path: '/Dail',
            name: 'Dail',
            component: Dail
        }
    ]
})
